
<p id="attr_form_msg" class="ui-state-error ui-state-error-text" style="display: none; padding: 2px"></p>
<form method="post" action="<?php echo url_for('data/createAttribute') ?>">
    <fieldset>
        <table>
            <tr>
                <td nowrap><label for="attr_new" >Name</label></td>
                <td><input style="width: 210px" type="text" id="attr_new_input" name="new-attribute-input" class="ui-widget ui-widget-content ui-corner-all"></td>
            </tr>
            <tr>
                <td><label for="unit_new">Unit</label></td>
                <td>
                    <input style="width: 80px" id="unit_new" type="text" class="ui-widget ui-widget-content ui-corner-all"/>
                </td>
            </tr>
        </table>
    </fieldset>
</form>
<script type="text/javascript">
    $(document).ready(function() {
        $("#unit_new").prepareUnitAutocomplete();
    })
</script>